<template>
    <div class="dataSearch">
        <el-tabs v-model="activeName">
            <el-tab-pane name="first">
                <span slot="label"><i class="el-icon-message"></i> 数据看板</span>
                <kanban ref="kanban"/>
            </el-tab-pane>
            <el-tab-pane name="second">
                <span slot="label"><i class="el-icon-date"></i> 新建翻译</span>
                <AddAnalysis/>
            </el-tab-pane>
        </el-tabs>
    </div>
</template>

<script>
    import kanban from './kanban'
    import AddAnalysis from './AddAnalysis.vue'
    export default {
        name: "analysis",
        data(){
            return{
                dialogFormVisible:false,
                selectList:[],
                siteTaskId:'',
                activeName:'first'
            }
        },
        components: {
            kanban,
            AddAnalysis
        },
        methods:{
            saveSuccess(){
                this.activeName='second';
                this.$refs.kanban.getListData()
            }
        }
    }
</script>

<style scoped lang="scss">
    .dataSearch{
        margin: 0 50px 60px;
        background: #fff;
        padding: 0 24px;
        position: relative;
        .lead{
            position: absolute;
            top: 5px;
            right: 20px;
        }
        .lead-file{
            z-index: 999;
            width: 98px;
            height: 40px;
            opacity: 0;
            cursor: pointer;
            position: absolute;
            top: 0;
            left: 68px;
        }
        ::v-deep{
            .el-tabs{
                border: none;
                box-shadow:none;
            }
            .el-tabs--border-card>.el-tabs__header{
                background: none;
            }
            .el-tabs__content{
                min-height: calc(100vh - 211px);
            }
            .el-tabs__header{
                margin-bottom: 0;
            }
            .el-form-item__content{
                position: relative;
            }
        }
    }
</style>